package com.project.communitymanagement.controller;

import com.project.communitymanagement.common.ResponseEntity;
import com.project.communitymanagement.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.RequestEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: epidemic-prevention-backend
 * @Package: com.project.communitymanagement.controller
 * @ClassName: HomeController
 * @Author: "XGP"
 * @Description:
 * @Date: 2022/03/23 14:10
 * @Version: 1.0
 */
@RestController
@RequestMapping("/home")
public class HomeController {

    @Autowired
    private HomeService homeService;

    @PostMapping("getHomeData")
    public ResponseEntity getHomeData(){
        return ResponseEntity.success(homeService.getHomeData());
    }
}
